<template>
	<view class="html_txt">
		<u-parse :html="htmlTxt"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				htmlTxt:'',
			};
		},
		onLoad(opt) {
			console.log(opt)
			uni.setNavigationBarTitle({
				title: opt.title
			})
			this.infoData(opt.ids)
		},
		methods:{
			infoData(ids=''){
				this.$tips.showLoading('加载中')
				this.$httpApi.msgsendList({ids:ids}).then((res)=>{
					this.$tips.hideLoading()
					if(res.code==1){
						const content = res.data[0]
						uni.setNavigationBarTitle({
							title: content.title
						})
						this.htmlTxt = content.content
					}
				})
			},
		},
	}
</script>

<style lang="less">
.html_txt{
	padding: 24rpx;
	width: 100%;
	.text{
		width: 100%;
		::v-deep p{
			width: 100%;
			image{
				display: block;
				width: 100% !important;
			}
			img{
				display: block;
				width: 100% !important;
			}
		}
	}
}
</style>
